package com.cskaoyan._02method._02test;

/*
 * 定义一个方法：求圆的面积：
 * 1.方法参数：半径
 * 2.圆周率3.14
 * */
public class _04Define_04 {
    public static double calculateCircleArea(int radius) {
        return 3.14 * radius * radius;
    }

    public static void main(String[] args) {
        System.out.println("calculateCircleArea(10) = " + calculateCircleArea(10));
        System.out.println("calculateCircleArea(20) = " + calculateCircleArea(20));
    }
}
